package com.gxar.quick.ar.server.base.async.sms.event;

import com.gxar.quick.ar.server.base.async.sms.dto.BatchSmsDTO;
import com.gxar.quick.ar.server.base.common.enums.SmsBusinessCodeEnum;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/3/6 09:26
 */
@Getter
public class AliBatchSmsEvent extends ApplicationEvent {

    private static final long serialVersionUID = -6423070254454441377L;

    /**
     * 发送短信业务模型
     */
    private final List<BatchSmsDTO> dtoList;
    /**
     * 签名列表
     */
    private final List<String> signList;

    /**
     * 业务编码，取决于获取什么模板
     */
    private final SmsBusinessCodeEnum businessCode;

    public AliBatchSmsEvent(Object source, List<BatchSmsDTO> dtoList, List<String> signList, SmsBusinessCodeEnum businessCode) {
        super(source);
        this.dtoList = dtoList;
        this.signList = signList;
        this.businessCode = businessCode;
    }

}
